package com.onlineMIS.ORM.entity.headQ.barcodeGentor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Category  implements Serializable{
//	public final static int CATEGORY_ID_NOT_PRODUCTS = 9;
//	public final static int CATEGORY_NEI_YI = 7;
//	public final static int CATEGORY_SHI_PING =11;
	public final static int CATEGORY_LEVEL1_DEFAUL = 2200;
	/**总部货品类 */
	public static final int TYPE_HEAD = -1;
	
	/** 店铺货品类*/
	public static final int TYPE_CHAIN = 1;
	
	/**正常状态货品类*/
	public static final int STATUS_GOOD = 1;
    private int category_ID;
    private String category_Name;
    private String category_Code = ""; 
    private int chainId = -1;
    private String typeS;
    private String material = "";
    private int status;
    //类别的层级
    //以前默认的都是层级2
    private int level;
    
    
    /**  1：货品类-产品线 */
    public static final int LEVEL1 = 1;
    
    /** 2：具体货品类  */
    public static final int LEVEL2 = 2;
    
    
     
 	private static Map<Integer, String> typesMap = new HashMap<Integer, String>();
 	static {
 		typesMap.put(TYPE_HEAD, "总部类别");
 		typesMap.put(TYPE_CHAIN, "连锁店类别");
 	}
 	
 	

 	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}


	public int getChainId() {
		return chainId;
	}

	public void setChainId(int chainId) {
		this.chainId = chainId;
	}

	public String getTypeS() {
		return typesMap.get(chainId);
	}
	public int getCategory_ID() {
		return category_ID;
	}
	public void setCategory_ID(int category_ID) {
		this.category_ID = category_ID;
	}
	public String getCategory_Name() {
		return category_Name;
	}
	public void setCategory_Name(String category_Name) {
		this.category_Name = category_Name;
	}
	public String getCategory_Code() {
		return category_Code;
	}
	public void setCategory_Code(String category_Code) {
		this.category_Code = category_Code;
	}

	@Override
	public String toString() {
		return "Category [ID=" + category_ID + ", Name=" + category_Name + ", Code="
				+ category_Code + ", chainId=" + chainId + ", material=" + material + ", status=" + status + ", level="
				+ level + "]";
	}


     
     
}
